package com.surprise.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.surprise.service.SpUserTokenService;
import com.surprise.dao.SpUserTokenDao;
import com.surprise.common.bean.Assist;
import com.surprise.pojo.SpUserToken;

/**
 * SpUserToken的service接口的实现类
 * 
 * @author 
 *
 */
@Service
public class SpUserTokenServiceImpl implements SpUserTokenService {

	@Autowired
	private SpUserTokenDao spUserTokenDao;
	
	@Override
	public long getSpUserTokenRowCount(Assist assist){
		return spUserTokenDao.getSpUserTokenRowCount(assist);
	}
	
	@Override
	public List<SpUserToken> selectSpUserToken(Assist assist){
		return spUserTokenDao.selectSpUserToken(assist);
	}
	
	@Override
	public SpUserToken selectSpUserTokenById(Integer id){
		return spUserTokenDao.selectSpUserTokenById(id);
	}
	
	@Override
	public SpUserToken selectSpUserTokenSingleByObj(SpUserToken obj){
		return spUserTokenDao.selectSpUserTokenSingleByObj(obj);
	}
	
	@Override
	public List<SpUserToken> selectSpUserTokenListByObj(SpUserToken obj){
		return spUserTokenDao.selectSpUserTokenListByObj(obj);
	}

	@Override
	public int insertSpUserToken(SpUserToken value){
		return spUserTokenDao.insertSpUserToken(value);
	}
	
	@Override
	public int insertNotNullSpUserToken(SpUserToken value){
		return spUserTokenDao.insertNotNullSpUserToken(value);
	}
	
	@Override
	public int insertSpUserTokenByBatch(List<SpUserToken> value){
		return spUserTokenDao.insertSpUserTokenByBatch(value);
	}
	
	@Override
	public int deleteSpUserTokenById(Integer id){
		return spUserTokenDao.deleteSpUserTokenById(id);
	}
	
	@Override
	public int deleteSpUserTokenByAssist(Assist assist){
		return spUserTokenDao.deleteSpUserTokenByAssist(assist);
	}
	
	@Override
	public int updateSpUserTokenById(SpUserToken value){
		return spUserTokenDao.updateSpUserTokenById(value);
	}
	
	@Override
	public int updateNotNullSpUserTokenById(SpUserToken value){
		return spUserTokenDao.updateNotNullSpUserTokenById(value);
	}
	
	@Override
	public int updateSpUserToken(SpUserToken value, Assist assist){
		return spUserTokenDao.updateSpUserToken(value, assist);
	}
	
	@Override
	public int updateNotNullSpUserToken(SpUserToken value, Assist assist){
		return spUserTokenDao.updateNotNullSpUserToken(value, assist);
	}


}